class Tag < ActiveRecord::Base
  has_many :taggings
  
  def self.all_by_name
    by_name = {}
    Tag.find(:all).each do |tag|
      by_name[tag.name] = tag.id
    end
    
    by_name
  end
  
end
